package text.menus;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;

public class MenusActivity extends Activity {
    /** Called when the activity is first created. */
	static Context cxt;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        cxt=this;
    }
    @Override
    public boolean onCreateOptionsMenu(Menu argbargle) {
    	MenuInflater MIFlator = getMenuInflater();
    	MIFlator.inflate(R.menu.menuthing, argbargle);
    	return (true);
    }
    @Override
    public boolean onOptionsItemSelected(MenuItem foot) {
    	switch (foot.getItemId()) {
    		case R.id.item2: {
    			toast("PIGS ARE F%^@ING AWESOME");
    			return true;
    		}
    		case R.id.item3: {
    			toast("why do you want a feather?");
    			toast("BECAUSE YOU SILY!");
    			return true;
    		}
    		case R.id.item4: {
    			toast("THAT'S ME!!");
    			return true;
    		}
    		case R.id.item5: {
    			toast("I LOVE BATH SALTS");
    			return true;
    		}
    		default: {
    			return true;
    		}
    	}
    }
    public void toast(String txt) {
    	Toast.makeText(cxt, txt, Toast.LENGTH_LONG).show();
    }
}